<?php

class StocksController extends Controller {

	function stockmanager() {
		$this->set('title','stockmanager');
		$this->set('stock', $this->Stock->query("select * from v_stocks") );
		$this->set('manager', $this->Stock);
		
		$this->set('productName', "product_name" );
		$this->set('packageName', "package_name" );
		$this->set('metricSystemUnitName', "metric_system_unit_name" );
		$this->set('quantity', "quantity" );
		$this->set('amountAvailable', "amount_available" );
		$this->set('amountDesired', "amount_desired" );
		$this->set('onShopList', "on_shoplist" );
		$this->set('amountOfCalories', "kCal / 100g" );
		$this->set('amountOfNatrium', "natrium / 100g" );
		$this->set('productId', "product_id" );
		$this->set('packageUnitId', "package_unit_id" );
		$this->set('stockId', "stock_id" );
		$this->set('metricSystemUnitId', "metric_system_unit_id" );
	}
	
	function productmanager() {
		$this->set('title', 'productmanager');
		$this->set('stock', $this->Stock);
		$this->set('productName', "product_name" );
	}
	
	function shoppingList(){
		$this->set('title', 'productmanager');
		$this->set('stock', $this->Stock);
	}
}